from django.db import models
from apps.common.base.models import BaseModel

class FinanceForLessee(BaseModel):
    dateCycle = (
        ('year', "年"),
        ('month', "月"),
        ('day', "日"),
    )
    dateCycle=models.CharField("时间周期", choices=dateCycle, max_length=200, blank=True, null=True, default='')
    dateValue=models.DateTimeField('日期', blank=True, null=True, default='')

    addIncomeFromAdminAll = models.DecimalField("管理员总充值", max_digits=10, decimal_places=2, default=0)
    addIncomeFromAdminNew = models.DecimalField("新增管理员充值", max_digits=10, decimal_places=2, default=0)
    subIncomeFromAdminAll = models.DecimalField("管理员总扣除", max_digits=10, decimal_places=2, default=0)
    subIncomeFromAdminNew = models.DecimalField("新增管理员扣除", max_digits=10, decimal_places=2, default=0)

    addIncomesOriginalFromAdminAll = models.DecimalField("管理员总充值原积分", max_digits=10, decimal_places=2, default=0)
    addIncomesOriginalAdminNew = models.DecimalField("新增管理员充值原积分", max_digits=10, decimal_places=2, default=0)
    subIncomesOriginalFromAdminAll = models.DecimalField("管理员总扣除原积分", max_digits=10, decimal_places=2, default=0)
    subIncomesOriginalFromAdminNew = models.DecimalField("新增管理员扣除原积分", max_digits=10, decimal_places=2, default=0)

    realPayForWxPay=models.DecimalField("微信支付",max_digits=10, decimal_places=2, default=0)
    realPayForWxPayReturn = models.DecimalField("微信支付退款", max_digits=10, decimal_places=2, default=0)
    realPayForWxPayAll = models.DecimalField("微信支付总额", max_digits=10, decimal_places=2, default=0)

    realPayForIncomes=models.DecimalField("资产支付",max_digits=10, decimal_places=2, default=0)
    realPayForIncomesReturn = models.DecimalField("资产支付退款", max_digits=10, decimal_places=2, default=0)
    realPayForIncomesAll = models.DecimalField("资产支付总额", max_digits=10, decimal_places=2, default=0)

    realPayAll=models.DecimalField("订单总金额",max_digits=10, decimal_places=2, default=0)
    shopOrderMoney=models.DecimalField("商户订单金额",max_digits=20, decimal_places=2, default=0)
    shopOrderMoneyAll=models.DecimalField("商户订单总金额",max_digits=20, decimal_places=2, default=0)
    shopBalanceMoney=models.DecimalField("商户结算金额",max_digits=20, decimal_places=2, default=0)
    shopBalanceMoneyAll=models.DecimalField("商户结算总金额",max_digits=20, decimal_places=2, default=0)

    supplierBalanceMoney=models.DecimalField("供应商结算金额",max_digits=20, decimal_places=2, default=0)
    supplierBalanceMoneyAll=models.DecimalField("供应商结算总金额",max_digits=20, decimal_places=2, default=0)

    newOutMoney=models.DecimalField("新增用户提现金额",max_digits=10, decimal_places=2, default=0)
    outMoneyAll = models.DecimalField("总提现金额", max_digits=10, decimal_places=2, default=0)
    newOutServiceCharge = models.DecimalField("新增用户提现手续费", max_digits=10, decimal_places=2, default=0)
    outMoneyServiceChargeAll = models.DecimalField("总提现手续费", max_digits=10, decimal_places=2, default=0)
    balanceIncomes = models.DecimalField("结余可提现资产", max_digits=10, decimal_places=2, default=0)

    newLockedCapital = models.DecimalField("新增锁仓本金", max_digits=10, decimal_places=2, default=0)
    newLockedSupport = models.DecimalField("新增锁仓补贴", max_digits=10, decimal_places=2, default=0)
    balanceLockedCapital = models.DecimalField("结余锁仓本金", max_digits=10, decimal_places=2, default=0)
    balanceLockedSupport = models.DecimalField("结余锁仓补贴", max_digits=10, decimal_places=2, default=0)
    newFreeIncome = models.DecimalField("新增释放锁仓", max_digits=10, decimal_places=2, default=0)
    freeIncomeAll = models.DecimalField("释放锁仓", max_digits=10, decimal_places=2, default=0)

    class Meta:
        verbose_name = '平台报表'
        verbose_name_plural = verbose_name